package com.gitee.zhanyao.monomer.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 用户注册基本信息
 */
@Schema(description = "用户注册基本信息")
@Data
public class RegisterModel implements Serializable {

    /**
     * 手机号
     */
    @Schema(title = "手机号码",
            description = "手机号码，必填",
            required = true,
            example = "13800138000")
    @NotBlank
    @Size(min = 1, max = 20)
    private String mobile;
    /**
     * 密码
     */
    @Schema(title = "密码",
            description = "密码，必填",
            required = true,
            example = "123456")
    @NotBlank
    @Size(min = 1, max = 20)
    private String password;

}
